<?php
require("includes/basic.php");
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$mobile=$_POST['mobile'];
$uname=$_POST['username'];

$password=$_POST['password'];
$pass_encoded=md5($password);
$creator=$userId;
$customer=$customerid;
$sql=mysql_query("insert into user_master (`first_name`,`last_name`,`mobile`,`user_name`,`user_password`,`user_created_on`,`user_created_by`,`customer_id`) values ('$fname','$lname','$mobile','$uname','$pass_encoded',sysdate(),'$creator','$creator')");

if($sql)
{
header('location:view-resources.php');
}

ob_flush();
?>